package com.jsb.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AskedExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public AskedExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public AskedExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andAnswerContentIsNull() {
            addCriterion("answerContent is null");
            return (Criteria) this;
        }

        public Criteria andAnswerContentIsNotNull() {
            addCriterion("answerContent is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerContentEqualTo(String value) {
            addCriterion("answerContent =", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotEqualTo(String value) {
            addCriterion("answerContent <>", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentGreaterThan(String value) {
            addCriterion("answerContent >", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentGreaterThanOrEqualTo(String value) {
            addCriterion("answerContent >=", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentLessThan(String value) {
            addCriterion("answerContent <", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentLessThanOrEqualTo(String value) {
            addCriterion("answerContent <=", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentLike(String value) {
            addCriterion("answerContent like", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotLike(String value) {
            addCriterion("answerContent not like", value, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentIn(List<String> values) {
            addCriterion("answerContent in", values, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotIn(List<String> values) {
            addCriterion("answerContent not in", values, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentBetween(String value1, String value2) {
            addCriterion("answerContent between", value1, value2, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAnswerContentNotBetween(String value1, String value2) {
            addCriterion("answerContent not between", value1, value2, "answerContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentIsNull() {
            addCriterion("askedContent is null");
            return (Criteria) this;
        }

        public Criteria andAskedContentIsNotNull() {
            addCriterion("askedContent is not null");
            return (Criteria) this;
        }

        public Criteria andAskedContentEqualTo(String value) {
            addCriterion("askedContent =", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentNotEqualTo(String value) {
            addCriterion("askedContent <>", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentGreaterThan(String value) {
            addCriterion("askedContent >", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentGreaterThanOrEqualTo(String value) {
            addCriterion("askedContent >=", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentLessThan(String value) {
            addCriterion("askedContent <", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentLessThanOrEqualTo(String value) {
            addCriterion("askedContent <=", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentLike(String value) {
            addCriterion("askedContent like", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentNotLike(String value) {
            addCriterion("askedContent not like", value, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentIn(List<String> values) {
            addCriterion("askedContent in", values, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentNotIn(List<String> values) {
            addCriterion("askedContent not in", values, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentBetween(String value1, String value2) {
            addCriterion("askedContent between", value1, value2, "askedContent");
            return (Criteria) this;
        }

        public Criteria andAskedContentNotBetween(String value1, String value2) {
            addCriterion("askedContent not between", value1, value2, "askedContent");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Integer value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Integer value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Integer value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Integer value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Integer value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Integer> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Integer> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Integer value1, Integer value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Integer value1, Integer value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andAskedDateIsNull() {
            addCriterion("askedDate is null");
            return (Criteria) this;
        }

        public Criteria andAskedDateIsNotNull() {
            addCriterion("askedDate is not null");
            return (Criteria) this;
        }

        public Criteria andAskedDateEqualTo(Date value) {
            addCriterion("askedDate =", value, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateNotEqualTo(Date value) {
            addCriterion("askedDate <>", value, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateGreaterThan(Date value) {
            addCriterion("askedDate >", value, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateGreaterThanOrEqualTo(Date value) {
            addCriterion("askedDate >=", value, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateLessThan(Date value) {
            addCriterion("askedDate <", value, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateLessThanOrEqualTo(Date value) {
            addCriterion("askedDate <=", value, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateIn(List<Date> values) {
            addCriterion("askedDate in", values, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateNotIn(List<Date> values) {
            addCriterion("askedDate not in", values, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateBetween(Date value1, Date value2) {
            addCriterion("askedDate between", value1, value2, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAskedDateNotBetween(Date value1, Date value2) {
            addCriterion("askedDate not between", value1, value2, "askedDate");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberIsNull() {
            addCriterion("answerPhoneNumber is null");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberIsNotNull() {
            addCriterion("answerPhoneNumber is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberEqualTo(String value) {
            addCriterion("answerPhoneNumber =", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberNotEqualTo(String value) {
            addCriterion("answerPhoneNumber <>", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberGreaterThan(String value) {
            addCriterion("answerPhoneNumber >", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberGreaterThanOrEqualTo(String value) {
            addCriterion("answerPhoneNumber >=", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberLessThan(String value) {
            addCriterion("answerPhoneNumber <", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberLessThanOrEqualTo(String value) {
            addCriterion("answerPhoneNumber <=", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberLike(String value) {
            addCriterion("answerPhoneNumber like", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberNotLike(String value) {
            addCriterion("answerPhoneNumber not like", value, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberIn(List<String> values) {
            addCriterion("answerPhoneNumber in", values, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberNotIn(List<String> values) {
            addCriterion("answerPhoneNumber not in", values, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberBetween(String value1, String value2) {
            addCriterion("answerPhoneNumber between", value1, value2, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerPhoneNumberNotBetween(String value1, String value2) {
            addCriterion("answerPhoneNumber not between", value1, value2, "answerPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidIsNull() {
            addCriterion("questionUuid is null");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidIsNotNull() {
            addCriterion("questionUuid is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidEqualTo(String value) {
            addCriterion("questionUuid =", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidNotEqualTo(String value) {
            addCriterion("questionUuid <>", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidGreaterThan(String value) {
            addCriterion("questionUuid >", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidGreaterThanOrEqualTo(String value) {
            addCriterion("questionUuid >=", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidLessThan(String value) {
            addCriterion("questionUuid <", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidLessThanOrEqualTo(String value) {
            addCriterion("questionUuid <=", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidLike(String value) {
            addCriterion("questionUuid like", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidNotLike(String value) {
            addCriterion("questionUuid not like", value, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidIn(List<String> values) {
            addCriterion("questionUuid in", values, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidNotIn(List<String> values) {
            addCriterion("questionUuid not in", values, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidBetween(String value1, String value2) {
            addCriterion("questionUuid between", value1, value2, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andQuestionUuidNotBetween(String value1, String value2) {
            addCriterion("questionUuid not between", value1, value2, "questionUuid");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberIsNull() {
            addCriterion("askedPhoneNumber is null");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberIsNotNull() {
            addCriterion("askedPhoneNumber is not null");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberEqualTo(String value) {
            addCriterion("askedPhoneNumber =", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberNotEqualTo(String value) {
            addCriterion("askedPhoneNumber <>", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberGreaterThan(String value) {
            addCriterion("askedPhoneNumber >", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberGreaterThanOrEqualTo(String value) {
            addCriterion("askedPhoneNumber >=", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberLessThan(String value) {
            addCriterion("askedPhoneNumber <", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberLessThanOrEqualTo(String value) {
            addCriterion("askedPhoneNumber <=", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberLike(String value) {
            addCriterion("askedPhoneNumber like", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberNotLike(String value) {
            addCriterion("askedPhoneNumber not like", value, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberIn(List<String> values) {
            addCriterion("askedPhoneNumber in", values, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberNotIn(List<String> values) {
            addCriterion("askedPhoneNumber not in", values, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberBetween(String value1, String value2) {
            addCriterion("askedPhoneNumber between", value1, value2, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAskedPhoneNumberNotBetween(String value1, String value2) {
            addCriterion("askedPhoneNumber not between", value1, value2, "askedPhoneNumber");
            return (Criteria) this;
        }

        public Criteria andAnswerDateIsNull() {
            addCriterion("answerDate is null");
            return (Criteria) this;
        }

        public Criteria andAnswerDateIsNotNull() {
            addCriterion("answerDate is not null");
            return (Criteria) this;
        }

        public Criteria andAnswerDateEqualTo(Date value) {
            addCriterion("answerDate =", value, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateNotEqualTo(Date value) {
            addCriterion("answerDate <>", value, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateGreaterThan(Date value) {
            addCriterion("answerDate >", value, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateGreaterThanOrEqualTo(Date value) {
            addCriterion("answerDate >=", value, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateLessThan(Date value) {
            addCriterion("answerDate <", value, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateLessThanOrEqualTo(Date value) {
            addCriterion("answerDate <=", value, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateIn(List<Date> values) {
            addCriterion("answerDate in", values, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateNotIn(List<Date> values) {
            addCriterion("answerDate not in", values, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateBetween(Date value1, Date value2) {
            addCriterion("answerDate between", value1, value2, "answerDate");
            return (Criteria) this;
        }

        public Criteria andAnswerDateNotBetween(Date value1, Date value2) {
            addCriterion("answerDate not between", value1, value2, "answerDate");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}